package com.qingkai.onlineshop.data.relations

import androidx.room.Embedded
import androidx.room.Relation
import com.qingkai.onlineshop.data.entity.ItemEntity
import com.qingkai.onlineshop.data.entity.PicUrlEntity

data class ItemWithPics(
    @Embedded val item: ItemEntity,
    @Relation(
        parentColumn = "id",
        entityColumn = "itemId"
    )
    val pics: List<PicUrlEntity>
)